<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="/taglibs/jstl/c" prefix="c" %>
<%@page import="com.music.common.entity.UserDetail"%>
<%@page import="com.music.common.entity.UserSettings"%>

<%@page import="java.util.List"%>

<%@page import="java.util.Iterator"%>
<%@page import="com.music.common.entity.Media"%><html>
<head>
<title>Rhushi-Testing</title></head>
<body>
<%

    UserSettings userSettings = (UserSettings) session.getAttribute( "userSettings");
	String name = userSettings.getFirstName() + " " + userSettings.getLastName();
	
	List<Media> media = (List<Media>) request.getAttribute("media");
	//Media med = (Media) request.getAttribute("media");
	String json = (String) request.getAttribute("response");

%>
Landed : <%=name %>
	<table>
<%
	for(Media med : media){
		String title = med.getTitle();
        String album = med.getAlbum();
        String lyrics = med.getLyrics();
        
%>
		<tr>
			<td><%= title %></td>
			<td><%= album %></td>   
			<td><div><%= lyrics %></div></td>   
		</tr>
<%
	}
%>
     </table>
    
    <form action="/ViewUploadAction.do" method="post">
    	<button type="submit">Upload</button>
    </form>
    <form action="/ImportDirectoryAction.do" method="post">
    	DIR : <input type="text" name="directory" title="DIR"/>
    	<button type="submit">Submit</button>
    </form>
    
</body>
</html>